package com.wind.taobao.api.trade.traderate.rest
{
	import com.wind.taobao.api.trade.traderate.convert.TradeRateConvert;
	import com.wind.taobao.core.webservice.TaobaoListResponse;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	import mx.collections.ArrayCollection;

	/**
	 * taobao.traderates.get Response
	 * @author fxy
	 *
	 */
	public class TradeRatesGetResponse extends TaobaoListResponse
	{
		public var tradeRates:ArrayCollection;

		public function TradeRatesGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initTradeRates();
		}

		private function initTradeRates():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("rates"))
					tradeRates=TradeRateConvert.convertTradeRates(body["rsp"]["rates"]);
			}
		}

	}
}